<template>
    <div class="HomePage">
        <div class="PageTop">
            <SmartCampus />
        </div>
        <div class="PageBottom">
            <div class="PageLeft">
                <GoThere />
                <WorkingCondition />
            </div>
            <div class="PageMiddle">
                <SituationMiddle />
            </div>
            <div class="PageRight">
                <Cities />
                <Salary />
            </div>
        </div>
        
    </div>
</template>

<script setup>
import SmartCampus from '../../components/SmartCampus/SmartCampus.vue';
import GoThere from '../../components/GoThere/GoThere.vue';
import WorkingCondition from '../../components/WorkingCondition/WorkingCondition.vue';
import Cities from '../../components/Cities/Cities.vue';
import Salary from '../../components/Salary/Salary.vue';
import SituationMiddle from '../../components/SituationMiddle/SituationMiddle.vue';
</script>

<style lang="scss" scoped>
.HomePage {
    display: flex;
    /* 纵向排列 */
    flex-direction: column;
    /* 占满全屏 */
    height: 100%;
    background: rgba(3, 1, 42, 1);
    color: #fff;

    .PageTop {
        flex: 0 0 74px;
        z-index: 1;
    }

    .PageBottom {
        display: flex;
        flex: 1;
        overflow: hidden;

        .PageLeft {
            position: fixed;
            top: 0;
            left: 0;
            width: 484px;
            height: 100%;
            /* 可视化边栏的背景颜色 */
            // background: rgba(5, 1, 76, 1);
            // 背景图片
            background-image: url('../../assets/left.png');
            background-position: center center;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .PageMiddle {
            position: fixed;
            top: 400px;
            left: 520px;
            /* 主内容占据剩余空间 */
            background: rgba(5, 1, 76, 1);
            /* 主内容的背景颜色 */
        }

        .PageRight {
            position: fixed;
            top: 0;
            right: 0;
            width: 484px;
            height: 100%;
            // background: rgba(5, 1, 76, 1);
            // 背景图片
            background-image: url('../../assets/right.png');
            background-position: center center;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }
    }
}
</style>